Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port more changes to JS rules #320

Merged
merged 48 commits into from
Oct 19, 2023
Merged

Port more changes to JS rules #320

merged 48 commits into from
Oct 19, 2023

Conversation

hendrikvanantwerpen
Copy link
Collaborator

@hendrikvanantwerpen hendrikvanantwerpen commented Oct 9, 2023

No description provided.

@hendrikvanantwerpen hendrikvanantwerpen self-assigned this Oct 9, 2023
@hendrikvanantwerpen hendrikvanantwerpen changed the base branch from main to new_js October 9, 2023 16:58
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Co-authored-by: Rebecca Valentine <[email protected]>
Elements that could be empty (i.e., not have subnodes) connected
their before and after scopes unconditionally. This could lead to
exponential blow ups when they were not empty: the direct pass
through and the path through the elements were equivalent.

Guarding the pass-through with a conditional that ensures it is
only created when there are indeed no sub nodes prevents this.
@hendrikvanantwerpen hendrikvanantwerpen marked this pull request as ready for review October 16, 2023 16:57
@hendrikvanantwerpen hendrikvanantwerpen requested a review from a team as a code owner October 16, 2023 16:57
@github-actions
Copy link

Performance Summary

Comparing base cfcd41a with head a342c0d on typescript_benchmark benchmark. For details see workflow artifacts. Note that performance is tested on the last commits with changes in stack-graphs, not on every commit.

Before
--------------------------------------------------------------------------------
Command:            base/target/release/tree-sitter-stack-graphs-typescript index -D base.sqlite --max-file-time=30 --hide-error-details -- base/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 base-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.581^                     :#                                                 
     |                     :#            :                                    
     |                     :#            :                                    
     |                     :#            :                                    
     |                     :#::::        ::::                                 
     |                     :#: :         :: :                                 
     |                     :#: :      :  :: :                                 
     |                     :#: :      :  :: :                                 
     |                    ::#: :      :@@:: :                                 
     |                  @@::#: :      :@ :: :     :                           
     |                  @ ::#: :     ::@ :: :   :::                :          
     |               @@ @ ::#: : :   ::@ :: :  :: :  ::@: :: :    ::   :::: : 
   0 +----------------------------------------------------------------------->Gi
     0                                                                   67.81
After
--------------------------------------------------------------------------------
Command:            head/target/release/tree-sitter-stack-graphs-typescript index -D head.sqlite --max-file-time=30 --hide-error-details -- head/data/typescript_benchmark
Massif arguments:   --massif-out-file=perf.out
ms_print arguments: --x=72 --y=12 head-perf-results/perf.out
--------------------------------------------------------------------------------


    GB
4.581^                     :#                                                 
     |                     :#           :                                     
     |                     :#           :                                     
     |                     :#           :                                     
     |                     :#:::        ::::                                  
     |                     :# ::        :: :                                  
     |                   : :# ::     :  :: :                                  
     |                   : :# ::     :  :: :                                  
     |                   :::# ::     :@@:: :                       :          
     |                   : :# ::     :@ :: :    ::        :        :          
     |                   : :# ::     :@ :: :   ::         :       ::          
     |               : @@: :# ::     :@ :: :  :::   :::  ::  :    ::  ::@:::: 
   0 +----------------------------------------------------------------------->Gi
     0                                                                   69.55

@BekaValentine BekaValentine merged commit 169c94f into new_js Oct 19, 2023
6 checks passed
@BekaValentine BekaValentine deleted the new_js_more_changes branch October 19, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants